n=3; num=[1,1,1]; m=2; p1=3; s1=26; s2=81;